const bookdetail = {
  state: {
    showShare: false,
    autoSecretCode: "", // 自动解锁秘钥
  },
  mutations: {
    updateShare(state, payload) {
      state.showShare = !!payload;
    },
    updateAutoSecret(state, payload) {
      state.autoSecretCode = payload;
    },
  }
};

export default bookdetail;
